<?php

class Disciple {
	private $philosophe;
	private $nom;
	
	public function __construct($nom, $phil=null) {
		$this->nom=$nom;
		
		$this->philosophe=$phil;
		
	}
	public function getNom() { return $this->nom; }
	public function __toString() {
		$str="Disciple [ Nom: ".$this->nom."\n\t";
		if (isset($this->philosophe)) $str.= "Philosophe: ".$this->philosophe->getNom();
		else $str.= "Sans philosophie........."; 
		
		 $str.="]";
		$str.="\n";
		return $str;
	}
	
	public function setPhilosophe($phil, $propage=false) {
		$this->philosophe=$phil;
		###
	}
	
	public function getPhilosophe() {
		return $this->philosophe;
	}
}
?>
